package com.smh.a11Test5;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
    public static void main(String[] args) throws IOException {

        ServerSocket ss = new ServerSocket(10001);


        while (true) {
            Socket accept = ss.accept();
            if (accept != null) {
                MyThread myThread = new MyThread(accept);
                myThread.start();
            }
        }

//        ss.close();


    }
}
